include_directories(${CMAKE_CURRENT_LIST_DIR}/include)
include_directories(${PROJECT_SOURCE_DIR}/libBase/include)
include_directories(${PROJECT_SOURCE_DIR}/libHardWare/Transport/include)

# add_definitions(-DPORT_CFG="${CMAKE_CURRENT_LIST_DIR}/../Port.yaml")
aux_source_directory(./src SERIAL_SRC)
add_library(motorcontrol SHARED ${SERIAL_SRC})
target_link_libraries(motorcontrol Base ${SerialPort}${Boost_LIBRARIES})

set(MOTORCONTROL_INCLUDE
    ${CMAKE_CURRENT_LIST_DIR}/include
    PARENT_SCOPE)